package com.idealighter.game.web.checklevel.laba.service.bo;

import java.util.HashMap;
import java.util.Map;

import lombok.Data;

@Data
public class LaBaCheckResultBo {
  private String id;
  private long betChips = 0L; // 下注金额
  private long winChips = 0L; // 赢的金币
  private long bonus = 0L; // 赢的bonus次数
  private long sgl = 0L; // 水果篮次数
  private Map<Integer, Long> typeMap = new HashMap<Integer, Long>(); // 奖励情况次数， 0:普通连线奖励
  // ,全盘奖励[1:铁斧,2:银枪,3:金刀,4:鲁智深,5:林冲,6:宋江,7:替天行道,8:忠义堂,9:水浒传,10:人物,11:武器
  private long betCount = 0L; // 下注次数
  private long winCount = 0L; // 赢的把数

  public void addSgl(long sgl) {
    this.sgl += sgl;
  }

  public void addBetChips(long betChips) {
    this.betChips += betChips;
  }

  public void addWinChips(long winChips) {
    this.winChips += winChips;
  }

  public void addBonus(int bonus) {
    this.bonus += bonus;
  }

  public void addBetCount(long betCount) {
    this.betCount += betCount;
  }

  public void addWinCount(long winCount) {
    this.winCount += winCount;
  }

  /**
   * .
   * 
   * @param map .
   */
  public void addTypeMap(Map<Integer, Long> map) {
    if (map != null) {
      for (Integer key : map.keySet()) {
        Long oldValue = this.typeMap.get(key);
        if (oldValue == null) {
          oldValue = 0L;
        }
        typeMap.put(key, oldValue + map.get(key));
      }
    }
  }
}
